package com.info.zhiduoduo.repository.entity.invoice;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 *  发票线下支付记录
 */
@Data
@Accessors(chain = true)
@TableName("zdd_invoice_offline_pay_record")
public class InvoiceOfflinePayRecord extends Model<InvoiceOfflinePayRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 发票ID
     */
    private Integer invoiceId;
    /**
     * 付款凭证
     */
    private String payVoucher;
    /**
     * 备注
     */
    @TableField("offline_remark")
    private String offlineRemark;
    /**
     * 操作人ID
     */
    private Integer adminid;
    /**
     * 创建时间
     */
    private Date createtime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
